The online racing simulator
Searching in All forums
(951 results)
Yisc[NL]
S3 licensed
I will look into this and will come back to you within a few hours.
Yisc[NL]
S3 licensed
My streets are stored in an array, so I made two subs 'EnterStreet' and 'LeaveStreet' and then walk through the street array, to grab the corresponding information.

If you used the code provided in your first post, being:


<?php 
RegisterStreetAction
("Highway","AS5X",7,857,-524,140,-109,HighwayEnter,"");
?>

Then your Sub should be:

<?php 
Sub HighwayEnter 
$userName )
EndSub
?>


Yisc[NL]
S3 licensed
I've justed tested my 'CfL - Street registration system' and it seems to work nicely.

This is the GUI to define the street:



After I pressed 'Store street' the actual code that's happing is shown on Lapper console:



When I enter the street, the HUD is showing in which street I am and what the maximum speed is:



And when I left the defined street, the HUD is cleared again:

Last edited by Yisc[NL], .
Yisc[NL]
S3 licensed
Usualy when Lapper 'crashes' things are written in the logfile (unless the whole application crashes and Windows tells you that the application stopped working).
If there are errors written in the logfile, that might point you in the right direction of what is going wrong.
Right after this message I will test my own CfL streetcode and see if it's still working or not, using Lapper 7.0.4.10
Yisc[NL]
S3 licensed
And thanks to you for keeping this project going.
It's great working with you, wether it's bug hunting or bouncing off ideas to each other.
Keep up the good work Thumbs up
Yisc[NL]
S3 licensed
Who says that LFS racing is dead? Uhmm
Great work to all working for and/or racing with AB.nl Thumbs up
Yisc[NL]
S3 licensed
I've picked this script up and went on building some features and solved some issues I came across.
There's probably more to do, but right now it's a fully functional game.

All credits to Bass-Driver for this script.

Changelog V1.01:

- Added counter to show how many guesses are left
- When number of guesses reaches 0, game ends
- Raise counter '$HangManMinigameStarted' by 1 when player starts Hangman
- Lower counter '$HangManMinigameStarted' by 1 when player closes Hangman
- Added counter to generate dynamic button ID in Sub 'Hangman'
- Close all buttons on screen when player closes Hangman
- When word is guessed, game ends
- Fixed a bug that showed the correct answer on 2nd game immediately after entering first letter
- Added to show the correct answer when game has ended and player failed to have guessed the word
- Changed eyes of drawn person from o to X when person died (action after final wrong guessed letter
- Made Hangman GUI relative to starting values, so position can be moved more easily
- Made drawing of Hangman relative to starting values, so position can me moved more easily
- Added array with words to be guessed
- Added option to Restart game when word is guessed or when you failed to guess to word

Change the extension of the file to .lpr and add it to addonsused.lpr to be able to use it.
Yisc[NL]
S3 licensed
Press the 'Preview in Full Editor' button, which is at the bottom right corner of the Quick answer box you are typing your text in.
Then you will see this:



And will be able to upload the ZIP-file here Thumbs up
Yisc[NL]
S3 licensed
Great work FreeScirocco, thanks for making the effort.
Maybe include the sourcefiles as well in the ZIP-file, so others will be able to work with that in the future (if needed or if they want to).
Yisc[NL]
S3 licensed
Thanks for this.
I know the same problem with RO11 not being read correctly, was present in LFS Lapper and was fixed by Bass-driver recently.
So I guess the same fix should be applied for this program.
Maybe he could tell us, how he solved it, so that this can be applied here as well.
Updated version of Trackinfo maker
Yisc[NL]
S3 licensed
I am reaching out to the coders on this forum and ask them to update a program called 'Trackinfo' to support the latest LFS tracks and configs.
The program is once written by Gai-Luron and can be found in this thread: https://www.lfs.net/forum/post/1185460#post1185460

Or directly be downloaded from: http://cgtavc.monespace.net/lapper/download/lapper/trackinfo1.4.zip

If you look at ConvWr.bat you will see this line:

ConvWr.exe -t idk -c coef -o outputFile

But using the -t switch will result in this message:




So I used the -i switch like I used to do when using Trackinfo maker 1.2, but then get this message:



Apart from the above issue, the program doesn't take the new Rockingham track into account and also the changed configs of Blackwood (rallytrack going from BL2 to BL3) aren't updated in this program.
I would highly appreciate it, if someone with programming skils, would be willing to look into this programme (sourcecode is in the download) and update it so it can be used again to generate a file that can be used in combination with LFS Lapper.
Yisc[NL]
S3 licensed
Quote from K0Z3L_43V3R :Not sure if you know, all packets are send in multiplayer replays like on real server, might be easier to debug on MPR Smile

Didn't know that, but that sure could be a big help.
Thanks for sharing this information Thumbs up
Yisc[NL]
S3 licensed
Test has finished and initial problem is solved (well, the real problem isn't solved, but the consequences it had, are solved for my script).
Thanks to all who participated and dedicated some of their time to help me, highly appreciate that.
Yisc[NL]
S3 licensed
I did a rewrite of the code (skipping the failing WHILE-loop and moved to a FOR-loop instead) and hoped to have cracked the problem once and for all now.
Again this needs to be tested, so I am calling out to the community once more.

Test server: AB.nl[TST]
Mode: Demo
Test time: 17:30 CET / 16:30 UTC

I will add the password to this message when starttime of this test is near.
Hopefully some people are willing to help me out (again).
Thanks in advance.
Yisc[NL]
S3 licensed
Test server is open again to get 11 or more people connected at once.

Test server: AB.nl[TST]
Password: 1234test
Mode: Demo

Come and join please, to get 11 or more people and check if a problem in Lapper is fixed or not.
Thanks to all willing to help us out.

*edit*

Test ended (and failed), back to the drawingboard tomorrow.
Last edited by Yisc[NL], .
Yisc[NL]
S3 licensed
Okay, to be a bit more specific, the above happens when a race is completed and then Lapper is stopped/started or restarted with a car (but probably with more as well) being on track.
Yisc[NL]
S3 licensed
Version seems to work fine as far as I can tell by testing it with 1 player.
There's one odd thing, every time Lapper is started (doesn't make a difference if you start the EXE or do !reload), this event from my Pitboard is executed:


<?php 
Sub OnRaceStart_Pitboard
() # Lapper event
    
IF ($start_window_1 == "")
    
THEN
      cmdLFS
"/rcm ^3Clean racing and have fun :-)" );
    ELSE
      
cmdLFS"/rcm ^7Pitwindow is set to: ^2" $start_window_1 " ^7- ^1" $end_window_1 );
    ENDIF
    
cmdLFS"/rcm_all" );

    
$mList GetListOfPlayers("N");
    
$mCount arrayCount$mList );
    
$plyNum=0;

    WHILE (
$plyNum $mCount)
        
$uName $mList[$plyNum];
        
SetPlayerVar$uName,"nbr_stops_window_1",$number_of_stops_w1 );
        
SetPlayerVar$uName,"nbr_stops_window_2",$number_of_stops_w2 );
        
SetPlayerVar$uName,"nbr_stops_window_3",$number_of_stops_w3 );
        
SetPlayerVar$uName,"player_status",);
        
SetPlayerVar$uName,"player_call_to_pitlane_exit",);
        
SetPlayerVar$uName,"player_call_to_start_qualify",);
        
SetPlayerVar$uName,"player_call_to_start_qualify",);
        
SetPlayerVar$uName,"user_fl_changed",);
        
SetPlayerVar$uName,"user_fr_changed",);
        
SetPlayerVar$uName,"user_rl_changed",);
        
SetPlayerVar$uName,"user_rr_changed",);
        
$plyNum=$plyNum+1;
    ENDWHILE

    
### Set $qualify to off ###
    
$qualify="off";
    
### End ###

EndSub
?>


It has never done this before and there's no need to run an RaceStart event, just when Lapper is launched.
Maybe it has something to do with debugging being active, but it seems to be a weird one to me.
Yisc[NL]
S3 licensed
Right, I got the data I needed.
Thanks to all who helped me out to get it.
Highly appreaciated.
Yisc[NL]
S3 licensed
Since there doesn't seem to be a huge crowed coming at once, the password is: test1234
Yisc[NL]
S3 licensed
I want them to jump in, but one by one as I need to do some debugging after every join
Help wanted to trackdown possible Lapper bug (or issue in one of my scripts)
Yisc[NL]
S3 licensed
There's one bug/problem I am not able to find/solve and since the team I am running servers for, is only racing once a week (which is the only moment the server has enough people connected to be able to test things, but it's really the right moment as races are about to start then), I am reaching out to the community to come and help me out.

If you are available this afternoon, please read on and if you are willing to help, react to this topic.

Test server: AB.nl[TST]
Test time: 17:00 CET / 16:00 UTC
People needed: 10 or a bit more

If you are willing to help, give a reaction and be here this afternoon at the given time.
I will then communicate the password and will ask people to join the server one by one (that is REALLY important as I believe the problem only occurs when the number of connected people goes above a certain number).

To be clear, no racing has to be done, I only need people to be connected.

I hope enough people are willing to dedicate a little of their time to help me out to try and find/solve this issue.
Thanks in advance.
Yisc[NL]
S3 licensed
I may have missed it, but was has been fixed? Smile
Yisc[NL]
S3 licensed
Tested the most imported scripts I have/made and they are all working as intended.
Only thing I noticed is the file "LFSLapper.lpr" in the 'BIN' folder, that wasn't there in 7.0.4.8 and earlier but is there in the last versions (7.0.4.9 and 7.0.4.10), while there don't seem to be a need for that file there.
Delete records (laptimes / driftscores)
Yisc[NL]
S3 licensed
With this script you will be able to delete records from the laptimes and driftscore database.
First of all the script has two modes, being a "User" mode and an "Admin" mode.
When in "User" mode, you will be able to see your records (laptimes/driftscores) for the currently loaded track.
When in "Admin" mode, you will be able to see your records, the records of another specific user (username can be entered) or see all records for the currently loaded track.

In both modes you have the option to delete a single record using the button at the end of each line, or delete all records for the current user, using the button at the bottom of the form.
When in "Admin" mode and having selected to show all the records for the current track, you have the option to set a filter on 'Car'.
To do so, click the "Car:" button with your LEFT mouse button and a 'Set' button will appear underneath it.
Once you click that button, you can enter a car name and then the data will be filtered down to that specific car.
It's also possible to sort the usernames ascending/decending.
To do that, click the "Username:" button using your LEFT mouse button and the displayed records will be sorted Ascending.
Clicking it again with your LEFT mouse button, will sort them Descending.
To remove the filter or sorting, just click the corresponding button "Car:" / "Username:" using your RIGHT mouse button.

Version history of this script can be found at the top of the script.

! REMEMBER ! deleting one or more records will actualy remove them from the database, so once they are gone, they are GONE.

Change the extension of the file to .lpr and add it to addonsused.lpr to be able to use it.
Last edited by Yisc[NL], .
FGED GREDG RDFGDR GSFDG